package com.yyp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yyp.bean.FareInfo;
import com.yyp.dao.FareInfoDao;
import com.yyp.service.FareInfoService;

@Service
public class FareInfoServiceImpl implements FareInfoService {
	@Resource
	FareInfoDao fareInfoImpl;

	//
	// public void del(String names) {

	// FareInfoImpl.delete(names);
	// }

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.FareInfoService#del(int)
	 */
	public void del(int id) {

		fareInfoImpl.delete(id);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.FareInfoService#find(java.lang.Integer)
	 */
//	public FareInfo find(Integer id) {
//		return fareInfoImpl.find(id);
//	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.FareInfoService#find(java.lang.String)
	 */
	public FareInfo find(String name) {
		return fareInfoImpl.find(name);

	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.FareInfoService#findAll()
	 */
	public List<FareInfo> findAll() {
		return fareInfoImpl.findAll();
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.FareInfoService#save(com.yyp.bean.FareInfo)
	 */
	public void save(FareInfo entity) {
		fareInfoImpl.save(entity);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.FareInfoService#updata(com.yyp.bean.FareInfo)
	 */
	public void updata(FareInfo entity) {
		fareInfoImpl.updata(entity);
	}

}
